package cn.xp.mapper;

import cn.xp.domain.Device;
import cn.xp.domain.Floor;
import cn.xp.dto.DeviceDto;
import cn.xp.util.JSONResult;

import java.util.List;

public interface DeviceMapper {

    Device findOne(Long id);

    List<DeviceDto> getDeviceDto(Long id);

    List<Device> findAll();

    void add(Device device);

    List<Device> findAllDeviceType(Long id);

    List<Device> findType(Long id);
}
